﻿IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE name = N'NT AUTHORITY\NETWORK SERVICE')
BEGIN
  CREATE LOGIN [NT AUTHORITY\NETWORK SERVICE] FROM WINDOWS
END

